package com.qq.entity;

/*
    @author:sa
    @date:2024/11/15 11:12
*/
public class Programmer {
    public String name;
    public int age;
    public int work;

    public Programmer() {
        System.out.println("无参构筑方法");
    }

    public Programmer(String name, int age) {
        this();
        this.name = name;
        System.out.println("有参构筑方法");
    }

    public void program(String name) {
        System.out.println(this.name + "写代码");
    }
}